package com.atguigu.gmall.user;

import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.model.user.UserAddress;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author: 封捷
 * @create-date: 2022/9/7 11:35
 */
@Component
public class UserFeignDegradeClient implements UserFeignClient {
    @Override
    public Result<List<UserAddress>> getUserAddressList(Long userId) {
        return Result.<List<UserAddress>>fail().message("服务降级了。");
    }
}
